package com.ys.erp.entity.data.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author 南山
 * @date 2025/08/08 11:39
 */
@Data
@Accessors
@TableName("t_join_bus_manage")
public class JoinBusManage {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 电话号码
     */
    @TableField("phone")
    private String phone;

    /**
     * 关联门店数
     */
    @TableField("shop_count")
    private Integer shopCount;

    /**
     * 状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 乐观锁版本号
     */
    @Version
    @TableField("version")
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", update = "now()")
    private LocalDateTime updateTime;

}
